/**
 * Copyright (C) 2011 KingCore Science & Technology CO,.LTD. All rights reserved.
 * XNS PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
 */

/**
 * Copyright (C) 2002-2011 WUZEWEN. All rights reserved.
 * WUZEWEN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
 *
 * This software is the confidential and proprietary information of
 * WuZeven, Personal. ("Confidential Information").  You shall not
 * disclose such Confidential Information and shall use it only in
 * accordance with the terms of the license agreement you entered into
 * with WuZeven.
 */

package wzw.swing.tree;

import javax.swing.JTree;
import javax.swing.tree.TreeNode;

/**
 * <p>java类文件的说明...</p>
 * @author Zeven/wzw on Jul 24, 2011
 * @version	1.0
 * @see		Object#equals(java.lang.Object)
 * @since	JDK5
 */

public class PlainTree extends JTree {

	private PlainTreeModel plainTreeModel;

	//屏蔽这种构造方式
//	public PlainTree() {
//		super(new PlainTreeModel());
//	}
	
    public PlainTree(TreeNode root) {
		super(new PlainTreeModel(root));
		this.plainTreeModel = (PlainTreeModel) super.getModel();
    	//boolean asksAllowsChildren = false;
    }
    
	public PlainTree(PlainTreeModel ptm) {
		super(ptm);
		this.plainTreeModel = ptm;
	}

    public PlainTreeModel getModel() {
        return this.plainTreeModel;
    }
    
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

}
